package com.example.tool.activtiy;

import android.support.v7.widget.CardView;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.example.tool.R;
import com.example.tool.activtiy.base.BaseActivity;
import com.example.tool.mvp.CommonPresent;

import butterknife.BindView;

/**
 * Created Date 2019/8/30
 *
 * @author liangkun
 * description：动画的案例
 */
public class AnimActivity extends BaseActivity<CommonPresent> {
    @BindView(R.id.card_home_item)
    protected CardView cardOne;
    @BindView(R.id.card_home_two)
    protected CardView cardTwo;
    @BindView(R.id.card_home_three)
    protected CardView cardThree;
    @BindView(R.id.card_home_four)
    protected CardView cardFour;

    @BindView(R.id.llMain)
    protected LinearLayout llMain;
    @BindView(R.id.tv_title)
    protected TextView tvTitle;

    @Override
    protected int getLayoutId() {
        return R.layout.anim;
    }

    @Override
    protected void initView() {
        tvTitle.setText("动画集合");
    }

    @Override
    protected void initData() {
        //测试主干打到分支上去
    }

    @Override
    protected void initEvent() {
        cardOne.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startToActivity(AnimActivity.this, FramAnimActivity.class);
            }
        });
        cardTwo.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startToActivity(AnimActivity.this, TweenAnimActivity.class);
            }
        });
        cardThree.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startToActivity(AnimActivity.this, PropertyAnimActivity.class);

            }
        });
        cardFour.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startToActivity(AnimActivity.this, LoveActivity.class);

            }
        });


    }

    @Override
    protected CommonPresent createPresenter() {
        return null;
    }

}
